﻿@model KCMS.BusinessLogic.Models.Order
@{
    ViewBag.Title = "Delete";
}
<h2>
    Delete</h2>
    <h3>Are you sure you want to delete this?</h3>
<h2>
    Заказ №@Model.Number</h2>
@{ Html.RenderAction("GetByOrderId", "OrderItem", new { orderId = Model.Id });}
<h3>
    Итого:@{Html.RenderAction("GetTotalByOrder", "OrderItem", new { orderId = Model.Id });}
    руб.</h3>
@Html.DisplayFor(m=>m.Client)
@using (Html.BeginForm()) {
    @Html.HiddenFor(model=>model.Id)
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
